import os

dir = r'F:\AIOPS\移动研究院\code\label-tool-cyp\label'
for f in os.listdir(dir):
    l = f.split('_')
    os.rename(os.path.join(dir, f), os.path.join(dir, f"{l[2]}.json"))